package com.ruoyi.stuinfo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 住宿分配对象 accommodation
 * 
 * @author zc
 * @date 2025-05-14
 */
public class Accommodation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 住宿分配ID，自增主键 */
    private Long accommodationId;

    /** 学生学号 */
    @Excel(name = "学生学号")
    private String studentId;

    /** 分配的房间ID */
    @Excel(name = "分配的房间ID")
    private String roomId;

    /** 分配的床位号 */
    @Excel(name = "分配的床位号")
    private String bedNumber;

    /** 入住日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkInDate;

    /** 退宿日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退宿日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkOutDate;

    /** 状态：在住/已退宿/调宿中 */
    @Excel(name = "状态：在住/已退宿/调宿中")
    private String status;

    public void setAccommodationId(Long accommodationId) 
    {
        this.accommodationId = accommodationId;
    }

    public Long getAccommodationId() 
    {
        return accommodationId;
    }

    public void setStudentId(String studentId) 
    {
        this.studentId = studentId;
    }

    public String getStudentId() 
    {
        return studentId;
    }

    public void setRoomId(String roomId) 
    {
        this.roomId = roomId;
    }

    public String getRoomId() 
    {
        return roomId;
    }

    public void setBedNumber(String bedNumber) 
    {
        this.bedNumber = bedNumber;
    }

    public String getBedNumber() 
    {
        return bedNumber;
    }

    public void setCheckInDate(Date checkInDate) 
    {
        this.checkInDate = checkInDate;
    }

    public Date getCheckInDate() 
    {
        return checkInDate;
    }

    public void setCheckOutDate(Date checkOutDate) 
    {
        this.checkOutDate = checkOutDate;
    }

    public Date getCheckOutDate() 
    {
        return checkOutDate;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("accommodationId", getAccommodationId())
            .append("studentId", getStudentId())
            .append("roomId", getRoomId())
            .append("bedNumber", getBedNumber())
            .append("checkInDate", getCheckInDate())
            .append("checkOutDate", getCheckOutDate())
            .append("status", getStatus())
            .toString();
    }
}
